﻿@model TumbaloSoft.Helpers.QueryObjects.BusquedaInmueble
@{
	ViewBag.Title = "Inmobiliaria Tumbalo Corp";
}


<body id="page1">

    <div class="body1">
        <div class="main">
            <header>
							@if (!@ViewBag.logueado)
							  {
								  <h1>

									  <a href="/" id="logo" style="padding-bottom: 7px"></a>
								  </h1>
                
                
                    		
								  <div class="wrapper">
									  <ul id="icons" style="margin-bottom: 11px;">

										  <li>@Html.Partial("_LogOnPartial") </li>
									  </ul>
								  </div>		
							  }
							else
							  {
								  if (@ViewBag.permiso == 0)
								  { 
									<h1>
										<a href="/PerfilSuperAdmin" id="logo" style="padding-bottom: 7px"></a>
									</h1>;
								  }
								  if (@ViewBag.permiso == 1)
								  { 
									<h1>
										<a href="/PerfilPropietario" id="logo" style="padding-bottom: 7px"></a>
									</h1>;
								  }
								  if (@ViewBag.permiso == 2)
								  { 
									<h1>
										<a href="/PerfilAdministrador" id="logo" style="padding-bottom: 7px"></a>
									</h1>;
								  }
								  if (@ViewBag.permiso == 3)
								  { 
									<h1>
										<a href="/PerfilAdministradorGeneral" id="logo" style="padding-bottom: 7px"></a>
									</h1>;
								  }
								  if (@ViewBag.permiso == 4)
								  { 
									<h1>
										<a href="/Ventas" id="logo" style="padding-bottom: 7px"></a>
									</h1>;
								  }
								  if (@ViewBag.permiso == 5)
								  { 
									<h1>
										<a href="/PerfilVendedor" id="logo" style="padding-bottom: 7px"></a>
									</h1>;
								  }
								  
								 	
							  <div class="wrapper" style="height: 36px; width: 250px; padding-left: 749px; padding-bottom: 1px; padding-top: 26px;">
								<p>
								<span>Bienvenido, @ViewBag.nombrePersona</span>
								<br />
								<a href="/Account/LogOff">Cerrar Sesión</a>
								</p>
								</div>
							  }

						

				

				<nav>
					<ul id="menu">
						<li id="menu_active">@Html.ActionLink("Inicio", "Index", "Home")</li>
						<li>@Html.ActionLink("Nosotros", "Us", "Home")</li>
						<li>@Html.ActionLink("Inmuebles", "Inmueble", "Home")</li>
						<li>@Html.ActionLink("Su Inmueble", "Index", "SuInmueble")</li>
						<li>@Html.ActionLink("Contactenos", "Contactenos", "Home")</li>
						

					</ul>
				</nav>

			</header>
		</div>
	</div>

	<div class="body2" style="margin-bottom: -90px;">
		<div class="main">
			<section id="content">
				<div class="wrapper">
					<article class="col1">
						<div id="slider">
							<img src="../Content/site/images/img1.jpg" alt="" title="<strong>Casa - Av.Los Olivos 334, 2005</strong><span>5 dormitorios, 3 baños, area cosntruida: 5000 m2. &nbsp; &nbsp; &nbsp; Precio: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Leer Mas</a></span>">
							<img src="../Content/site/images/img2.jpg" alt="" title="<strong>Casa - Av.San Miguel 4545, 2005</strong><span>5 dormitorios, 3 baños, area cosntruida: 5000 m2. &nbsp; &nbsp; &nbsp; Precio: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Leer Mas</a></span>">
							<img src="../Content/site/images/img3.jpg" alt="" title="<strong>Casa - Av.Iquitos 1234, 2005</strong><span>5 dormitorios, 3 baños, area cosntruida: 5000 m2. &nbsp; &nbsp; &nbsp; Precio: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Leer Mas</a></span>">
							<img src="../Content/site/images/img4.jpg" alt="" title="<strong>Balneareo - Av.San Borja 8678, 2005</strong><span>5 dormitorios, 3 baños, area cosntruida: 5000 m2. &nbsp; &nbsp; &nbsp; Precio: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Leer Mas</a></span>">
							<img src="../Content/site/images/img5.jpg" alt="" title="<strong>Casa - Av.Javier Prado 3245, 2005</strong><span>5 dormitorios, 3 baños, area cosntruida: 5000 m2. &nbsp; &nbsp; &nbsp; Precio: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Leer Mas</a></span>">
							<img src="../Content/site/images/img6.jpg" alt="" title="<strong>Casa - Av.Catolica 9300, 2005</strong><span>5 dormitorios, 3 baños, area cosntruida: 5000 m2. &nbsp; &nbsp; &nbsp; Precio: $ 600 000 &nbsp; &nbsp; &nbsp; <a href='#'>Leer Mas</a></span>">
						</div>
					</article>
					<article class="col2">
						<form id="form_1" method="POST" action="Home/Catalogo">
							<div class="pad1">
								<h3>Busca tu Inmueble</h3>
								<div class="row_select">
									Tipo de Inmueble:<br>
									<select name="prTipoINmueble.prIdTipoInmueble">
										<option value=0>-Seleccione una Opcion-</option>
										@foreach (var objTipo in ViewBag.listaTipoInmueble)
		{
                                                      <option value="@objTipo.prIdTipoInmueble"> @objTipo.prDescripcion</option>
		}
									</select>
								</div>
								<div class="row_select">
									Ubicacion:<br>
									<select name="prDistrito.prIdDistrito">
										<option value=0>-Seleccione una Opcion-</option>
										 @foreach (var objTipo1 in ViewBag.listaDistritos)
		 {                                                        
                                                        <option value="@objTipo1.prIdDistrito">@objTipo1.prNombreDistrito</option>
		 }
									</select>
								</div>
								<div class="row">
									<div class="cols">
										Rango precios:<br>
										@Html.TextBoxFor(model => model.prValorMercadoMin, new { @class = "miniinput" })
                                                @Html.ValidationMessageFor(model => model.prValorMercadoMin, null, new { style = "float: none" })
									</div>
									<div class="cols pad_left1">
										a:<br>
										@Html.TextBoxFor(model => model.prValorMercadoMax, new { @class = "miniinput", })
                                                @Html.ValidationMessageFor(model => model.prValorMercadoMax, null, new { style = "float: none" })
									</div>
								</div>
								<div class="row">
									<div class="cols">
										Area terreno(s):<br>
										@Html.TextBoxFor(model => model.prAreaConstruidaMin, new { @class = "miniinput" })
                                                @Html.ValidationMessageFor(model => model.prAreaConstruidaMin, null, new { style = "float: none" })
									</div>
									<div class="cols pad_left1">
										a:<br>
										@Html.TextBoxFor(model => model.prAreaConstruidaMax, new { @class = "miniinput" })
                                                @Html.ValidationMessageFor(model => model.prAreaConstruidaMax, null, new { style = "float: none" })
									</div>
								</div>
								<div class="row">
									<div class="cols">
										Dormitorio(s):<br>
										@Html.TextBoxFor(model => model.prNroDormitorios, new { @class = "miniinput" })
                                                @Html.ValidationMessageFor(model => model.prNroDormitorios, null, new { style = "float: none" })
									</div>
									<div class="cols pad_left1">
										Baño(s):<br>
										@Html.TextBoxFor(model => model.prNroBanhos, new { @class = "miniinput" })
                                                @Html.ValidationMessageFor(model => model.prNroBanhos, null, new { style = "float: none" })
									</div>
								</div>
								<div class="row_select pad_bot1">
									<div class="cols">
										Piso(s):<br>
										@Html.TextBoxFor(model => model.prNroPisos, new { @class = "miniinput" })
                                                @Html.ValidationMessageFor(model => model.prNroPisos,null ,new{style = "float: none"})
									</div>
									<div class="cols pad_left1">
										<a href="#" class="button" onclick="document.getElementById('form_1').submit()">Buscar</a>
									</div>
								</div>
							</div>
						</form>
					</article>
				</div>

			</section>
		</div>
	</div>

	<!-- / content -->

	<script type="text/javascript"> Cufon.now(); </script>
	<script type="text/javascript">
		$(window).load(function () {
			$('#slider').nivoSlider({
				effect: 'sliceUpDown', //Specify sets like: 'fold,fade,sliceDown, sliceDownLeft, sliceUp, sliceUpLeft, sliceUpDown, sliceUpDownLeft'
				slices: 17,
				animSpeed: 500,
				pauseTime: 6000,
				startSlide: 0, //Set starting Slide (0 index)
				directionNav: false, //Next & Prev
				directionNavHide: false, //Only show on hover
				controlNav: true, //1,2,3...
				controlNavThumbs: false, //Use thumbnails for Control Nav
				controlNavThumbsFromRel: false, //Use image rel for thumbs
				controlNavThumbsSearch: '.jpg', //Replace this with...
				controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
				keyboardNav: true, //Use left & right arrows
				pauseOnHover: true, //Stop animation while hovering
				manualAdvance: false, //Force manual transitions
				captionOpacity: 1, //Universal caption opacity
				beforeChange: function () { $('.nivo-caption').animate({ bottom: '-110' }, 400, 'easeInBack') },
				afterChange: function () { Cufon.refresh(); $('.nivo-caption').animate({ bottom: '-20' }, 400, 'easeOutBack') },
				slideshowEnd: function () { } //Triggers after all slides have been shown
			});
			Cufon.refresh();
		});
	</script>
</body>
